package com.itheima.stock.api;

import com.itheima.stock.entity.StockBlockRtInfo;
import com.itheima.stock.entity.StockBusiness;
import com.itheima.stock.entity.StockUpdownDomain;
import com.itheima.stock.response.ResponseResult;
import com.itheima.stock.vo.PageResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author zby
 * @created 2024-06-23 16:29
 * @description
 */
@RequestMapping(path = "/api/quot")
public interface StockControllerAPI {



    @GetMapping(path = "/stock/business/all")
    ResponseResult<List<StockBusiness>> getStockBusiness();

    @GetMapping("/sector/all")
    ResponseResult<List<StockBlockRtInfo>> sectorAll();

    @GetMapping("/stock/increase")
    ResponseResult<List<StockUpdownDomain>> stockIncreaseLimit();

    @GetMapping("/stock/all")
    ResponseResult<PageResult<StockUpdownDomain>> stockPage(@RequestParam("page") Integer page, @RequestParam("pageSize") Integer pageSize);

    @GetMapping("/stock/updown/count")
    ResponseResult<Map> upDownCount();
}